<template>
    <div style="height: 100%;">
        <tsSheet v-if="data" :data="data" :jsonContent="jsonContent"></tsSheet>
    </div>
</template>
<script setup>
import { ref, onMounted } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { Plus, Edit, Delete } from '@element-plus/icons-vue';
import tsSheet from '@/components/tsSheet/index.vue'
import API from '@/api/model/luckysheet.js'
const route = useRoute();
const router = useRouter()
// const props = defineProps({
//     paramsData: {
//         type: Object,
//         defalut: {}
//     }
// })
const data =ref()
const jsonContent = ref()
onMounted(() => {
    getInit()
})
const getInit = async () => {
    let param ={
		id:route.query.id,
	}
    let res = await API.load.post(param)
    if(res.code == '200'){
        if(res.jsonContent){
            jsonContent.value = JSON.parse(res.jsonContent)
        }
        data.value = res.data
    }
  }
</script>
  